package top.stmo.pojo;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

//@TableName("tbl_book")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book {

//    @TableId(type = IdType.ASSIGN_ID)
    private Integer id;

    private String name;

    private String type;

    private String description;

    //逻辑删除字段
    @TableLogic(value = "0",delval = "1")
    private Integer deleted;

    //实现乐观锁字段
    @Version
    private Integer version;

}
